package scsc.pub.data;

import java.io.Serializable;
import org.apache.commons.lang.builder.ToStringBuilder;


/** 
 *        @hibernate.class
 *         table="ExpensesPrice"
 *         schema="scsc"
 *         dynamic-update="true"
 *         dynamic-insert="true"
 *     
*/
public class ExpensesPrice implements Serializable {

    /** identifier field */
    private String feeTypeId;

    /** persistent field */
    private String feeTypeName;

    /** persistent field */
    private double feePrice;

    /** nullable persistent field */
    private String feeUnit;

    /** persistent field */
    private String userId;

    /** nullable persistent field */
    private String latestDate;

    /** full constructor */
    public ExpensesPrice(String feeTypeId, String feeTypeName, double feePrice, String feeUnit, String userId, String latestDate) {
        this.feeTypeId = feeTypeId;
        this.feeTypeName = feeTypeName;
        this.feePrice = feePrice;
        this.feeUnit = feeUnit;
        this.userId = userId;
        this.latestDate = latestDate;
    }

    /** default constructor */
    public ExpensesPrice() {
    }

    /** minimal constructor */
    public ExpensesPrice(String feeTypeId, String feeTypeName, double feePrice, String userId) {
        this.feeTypeId = feeTypeId;
        this.feeTypeName = feeTypeName;
        this.feePrice = feePrice;
        this.userId = userId;
    }

    /** 
     *            @hibernate.id
     *             generator-class="assigned"
     *             type="java.lang.String"
     *             column="FeeTypeId"
     *         
     */
    public String getFeeTypeId() {
        return this.feeTypeId;
    }

    public void setFeeTypeId(String feeTypeId) {
        this.feeTypeId = feeTypeId;
    }

    /** 
     *            @hibernate.property
     *             column="FeeTypeName"
     *             length="20"
     *             not-null="true"
     *         
     */
    public String getFeeTypeName() {
        return this.feeTypeName;
    }

    public void setFeeTypeName(String feeTypeName) {
        this.feeTypeName = feeTypeName;
    }

    /** 
     *            @hibernate.property
     *             column="FeePrice"
     *             length="53"
     *             not-null="true"
     *         
     */
    public double getFeePrice() {
        return this.feePrice;
    }

    public void setFeePrice(double feePrice) {
        this.feePrice = feePrice;
    }

    /** 
     *            @hibernate.property
     *             column="FeeUnit"
     *             length="20"
     *         
     */
    public String getFeeUnit() {
        return this.feeUnit;
    }

    public void setFeeUnit(String feeUnit) {
        this.feeUnit = feeUnit;
    }

    /** 
     *            @hibernate.property
     *             column="UserId"
     *             length="7"
     *             not-null="true"
     *         
     */
    public String getUserId() {
        return this.userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    /** 
     *            @hibernate.property
     *             column="LatestDate"
     *             length="23"
     *         
     */
    public String getLatestDate() {
        return this.latestDate;
    }

    public void setLatestDate(String latestDate) {
        this.latestDate = latestDate;
    }

    public String toString() {
        return new ToStringBuilder(this)
            .append("feeTypeId", getFeeTypeId())
            .toString();
    }

}
